create
open fun create(@NonNull bitmap: Bitmap, hotSpotX: Float, hotSpotY: Float): PointerIconCompat(source)
Creates a custom pointer from the given bitmap and hotspot information.
Return
A pointer icon for this bitmap.
Parameters
bitmap
The bitmap for the icon.
hotSpotX
The X offset of the pointer icon hotspot in the bitmap. Must be within the [0, bitmap.getWidth()) range.
hotSpotY
The Y offset of the pointer icon hotspot in the bitmap. Must be within the [0, bitmap.getHeight()) range.
Throws
if bitmap is null, or if the x/y hotspot parameters are invalid.